package service;

import pojo.Doctor;

import java.util.List;

public interface DoctorService {
    List<Doctor> findAll();
    Doctor findById(String docId);
    Doctor findByUserId(String userId);
    Doctor findByUserName(String user);
    int add(Doctor doctor);
    int update(Doctor doctor);
    int deleteDoctor(String docId);

    // 新增：根据user_id更新医生信息的方法
    int updateByUserId(Doctor doctor);
}